package b3_RBTree;

import b2_AVL.AVLTree;

/**
 * 测试红黑树
 */
public class TestRBTree {
    public static void main(String[] args) {

        int[] arr = {6, 1, 3, 4, 8, 5, 2, 9, 7, 2, 5};

        RBTree rbTree = new RBTree();

        for (int i = 0; i < arr.length; i++) {
            rbTree.insert(arr[i]);
        }

        System.out.println(rbTree.toString());
    }
}
